/*
 * @Author: CoderLPF
 * @Date: 2020-04-16 18:21:48
 * @LastEditTime: 2020-04-17 12:39:25
 * @LastEditors: CoderLPF
 * @Description: 
 * @FilePath: \fzx-system-fd\src\api\sketch\index.js
 */

import api from '../index';
import urls from './urls';

export default {
    add(param) {
        return api.post(urls.add, param, null, null);
    },
    delete(id) {
        return api.post(urls.delete, { reqMap: id }, null, null);
    },
    update(param) {
        return api.post(urls.update, param, null, null);
    },
    query(subject_id) {
        return api.get(urls.query, { subject_id: subject_id }, null);
    }
};